<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<html>
<head>
<style>
	#left {float:padding:5px 5px 5px 5px;width:70%;}
   #right {float:right;width:28%;}
</style>

</head>
<body marginheight="0">
<div id="left">
<div id="myFeedItem"></div>
</div>

<div id="right">
<a href="javascript:refreshFeedItem(-1,1)">所有日志</a>

<p>
<h2>您订阅的Feed  <a href="javascript:listFeed(1)">增加订阅</a></h2>
<div id="mySubFeed"></div>
</div>
<script type='text/javascript'>
    function refreshFeedItem(id,page)
    {
       $("#myFeedItem").html("载入中...");
       $("#myFeedItem").load("listFeedFeedItem.ajax",{id:id,page:page});
    }
    
    function refreshFeed()
    {
       $("#mySubFeed").html("载入中...");
       $("#mySubFeed").load("listFansSubFeed.ajax");
    }
    
    
     function listFeed(page)
    {
       $("#myFeedItem").html("载入中...");
       $("#myFeedItem").load("listFeed.ajax",{page:page});
    }
    
    function clickFeed(id){
         refreshFeedItem(id,1);
   }
   
    
	function subFeed(type,i){	
		if(!login){		
		TB_show('请登录','html/ajaxLogin.htm?height=300&width=500');
		return;
		}
		
  	    if(type=='unsub'){
  	    	if(!confirm("你确定要取消订阅这个Feed吗"))
  	    	return;
  	    }
       $("#mySubFeed").load("subFeed.ajax",{type:type,id:i});
 }

    refreshFeed();
    refreshFeedItem(-1,1);
  </script>
    
</script>
</body>
</html>